<?php
	include("includes/connect_db.php");
    $id_draft = $_POST['id_draft'];
    $aksi = $_GET['aksi'];

    switch ($aksi) {
    	case '1':
    			$sql_hapus_draft= "DELETE FROM tb_draft WHERE id_draft = '$id_draft'";
    			$query_hapus_draft = mysql_query($sql_hapus_draft);
				if($query_hapus_draft){
					echo "sukses";
				}
    		break;
    }
?>